<template>
  <dt-modal-info ref='info' :title='title' :width='800'>
    <dt-grid ref="logTable" :onFetch='onFetch' :height='500' />
  </dt-modal-info>
</template>

<script>
  import logColumns from '../opt/statusLogColumns'
  import buildingApi from '@/biz/buildingManagement/basicInfo'

  export default {
    data() {
      return {
        title: '调整记录'
      }
    },
    methods: {
      show(data) {
        this.$refs.info.show()
        this.$refs.logTable.init(this, new logColumns(this))
        this.$refs.logTable.fetch()
      },
      onFetch(data) {
        let params = {
          housesId: this.$dt.buildInfo().housesId,
        }
        return buildingApi.selectHousesStatusLog(params).then((res) => {
          if (res) {
            return res
          }
        })
      }
    }
  }
</script>

<style lang="scss" scoped>

</style>